package com.yuhs.zixing.study.design.pattern.dp002.structural.s006.flyweight.f002;

import com.yuhs.zixing.study.design.pattern.dp002.structural.s006.flyweight.f001.SignInfo001;
import com.yuhs.zixing.study.design.pattern.dp002.structural.s006.flyweight.f001.SignInfoFactory001;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/2 11:07 AM
 */
public class Client002 {
    public static void main(String[] args) {
        //初始化对象池
        for (int i = 0; i < 4; i++) {
            String subject = "科目" + i;
            //初始化地址
            for (int j = 0; j < 30; j++) {
                String key = subject + "考试地点" + j;
                SignInfoFactory002.getSignInfo(key);
            }
        }
        SignInfo002 signInfo = SignInfoFactory002.getSignInfo("科目1考试地点1");
    }
}
